package com.hnhs.mapper;

import com.hnhs.annotaion.PageX;
import com.hnhs.model.Category;
import com.hnhs.model.CategoryQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CategoryDao {
    @PageX
    public List<Category> select(CategoryQuery query);

    int insert(Category category);
    int update(Category category);

    //软删除 逻辑删除 只改状态不删除数据
    int updateStatus(@Param("id") Integer id,@Param("status") Integer status);
}
